package com.lanou.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.lanou.bean.Service;
import org.apache.ibatis.annotations.Param;

/**
 * Created by dllo on 18/3/13.
 */
public interface ServiceService {
    List<Service> allservice();
    List<Service> selectCostById(Integer costId);
    PageInfo<Service> queryCostByPage(Integer pageNo, Integer pageSize);
    PageInfo<Service> queryServiceByPage(Integer pageNo, Integer pageSize);
    void addservice(Service service);
    void deleteservice(Integer serviceid);
    String osUsernameisexist(String osUsername);

    void updateStatusByServiceId(@Param("status") String status, @Param("serviceId") Integer serviceId);

    List<Service> findServiceById(Integer serviceId);

    void updateCostIdByServiceId(Integer costId, Integer serviceId);

    List<Service> selectByServiceId(Integer serviceId);
}
